﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DetetiveKGB.Models.UserModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Cadastro de Usuários
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Cadastro de Usuário</h2>
    <% using (Html.BeginForm("Edit", "Users", FormMethod.Post))
       { %>
            <%: Html.ValidationSummary()%>
            <table>
                <tr>
                    <td>
                        <input type="submit" value="Gravar" />
                        <input type="button" value="Voltar" onclick="document.location.href='<%: Url.Action("Index", "Users") %>'" />
                    </td>
                </tr>
            </table>
            <table>
                <tr>
                    <td class="label"><%: Html.LabelFor(m => m.UserName) %></td>
                    <td><%: Html.TextBoxFor(m => m.UserName, new { @style="width: 200px;", @readonly="true" })%></td>
                </tr>
                <tr>
                    <td class="label"><%: Html.LabelFor(m => m.Name) %></td>
                    <td><%: Html.TextBoxFor(m => m.Name, new { @style = "width: 200px;" })%></td>
                </tr>
                <tr>
                    <td class="label"><%: Html.LabelFor(m => m.Email) %></td>
                    <td><%: Html.TextBoxFor(m => m.Email, new { @style = "width: 200px;" })%></td>
                </tr>
                <tr>
                    <td class="label"><%: Html.LabelFor(m => m.Notes) %></td>
                    <td><%: Html.TextAreaFor(m => m.Notes, new { @style = "width: 200px;" })%></td>
                </tr>
                <tr>
                    <td class="label"><%: Html.LabelFor(m => m.IsLockedOut) %></td>
                    <td><%: Html.CheckBoxFor(m => m.IsLockedOut) %></td>
                </tr>
            </table>
    <% } %>
</asp:Content>
